package com.tuandai;

import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author 肖文
 * @Description ${DESCRIPTION}
 * @date 2018/3/27 21:16
 */
@Component
public class UsersServiceFallback implements UserService{

    @Override
    public List<Map> find() {
        System.out.println("UsersService.find调用失败");
        return null;
    }

    @Override
    public String get(String name,int age) {
        System.out.println("UsersService.find调用失败");
        return "UsersService.find调用失败";
    }

    @Override
    public String getHello() {
        return "UsersService.find调用失败";
    }

    @Override
    public String sayHello(String name) {
        return "UserService.sayHello调用失败";
    }
}
